package com.qf.pojo.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author lipengg
 * @date 2021/10/25
 */
@Data
@Entity
@Table(name = "d_seat_detail")
public class TrainTicket {
//    private String trainType;
//    private String trainId;
//    private String trainDetailId;
//    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
//    private Date leaveTime;
//    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
//    private Date arriveTime;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "seat_id")
    private Integer seatId;
    @Column(name = "seat_name")
    private String seatName;
    @Column(name = "seat_price")
    private Double seatPrice;
    @Column(name = "dispature_id")
    private Integer departureId;
    @Column(name = "distination_id")
    private Integer destinationId;
    @Column(name = "d_train_id")
    private String trainDetailId;
    @Column(name = "d_ticket_num")
    private Integer dTicketNum;

}
